import request from '@/utils/request'

// 获取所有权限点
export const getPermission = () => request.get('/sys/permission')
// 添加权限点
export const postPermission = (data) => request.post('/sys/permission', data)
// 根据ID更新权限点详情
export const putPermission = (data) => request.put(`/sys/permission/${data.id}`, data)
// 根据id删除权限点
export const delPermission = (id) => request.delete(`/sys/permission/${id}`)

